{
 "cells": [
  {
   "attachments": {},
   "cell_type": "markdown",
   "metadata": {
    "dotnet_interactive": {
     "language": "csharp"
    },
    "polyglot_notebook": {
     "kernelName": "csharp"
    }
   },
   "source": [
    "键盘快捷方式:\n",
    "  Enter                如果显示当前提交完成，则对其进行求值。否则，插入新行。\n",
    "  Ctrl-Enter           在当前提交内，对当前提交求值。\n",
    "                       在前一个提交内，将前一个提交追加到当前提交。\n",
    "  Shift-Enter          插入新行。\n",
    "  Escape               清除当前提交。\n",
    "  Alt-UpArrow          将当前提交替换为前一个提交。\n",
    "  Alt-DownArrow        将当前提交替换为后一个提交(在之前已向后导航之后)。\n",
    "  Ctrl-Alt-UpArrow     将当前提交替换为以相同文本开头的前一个提交。\n",
    "  Ctrl-Alt-DownArrow   将当前提交替换为以相同文本开头的后一个提交(在之前已向后导航之后)。\n",
    "  Ctrl-K, Ctrl-Enter   在交互式缓冲区末尾粘贴选定内容，将插入点置于输入末尾。\n",
    "  Ctrl-E, Ctrl-Enter   粘贴选定内容，并在交互式缓冲中任何挂起的输入之前执行。\n",
    "  Ctrl-A               第一次按下时，选择包含光标的提交，第二次按下时，选择窗口中的所有文本。\n",
    "REPL 命令:\n",
    "  #cls, #clear         清除编辑器窗口中的内容，保留历史记录和执行上下文不变。\n",
    "  #help                显示有关指定命令的帮助，如果未指定，则显示有关所有可用命令和密钥绑定的帮助。\n",
    "  #reset               将执行环境重置为初始状态，保留历史记录。\n",
    "脚本指令:\n",
    "  #r                   添加对指定程序集及其所有依赖项的元数据引用，例如 #r \"myLib.dll\"。\n",
    "  #load                加载指定的脚本文件并执行，例如 #load \"myScript.csx\"。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "dotnet_interactive": {
     "language": "csharp"
    },
    "polyglot_notebook": {
     "kernelName": "csharp"
    },
    "vscode": {
     "languageId": "csharp"
    }
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "\n",
      "(1,26): error CS0103: 当前上下文中不存在名称“Date”\n",
      "\n"
     ]
    },
    {
     "ename": "Error",
     "evalue": "compilation error",
     "output_type": "error",
     "traceback": []
    }
   ],
   "source": [
    "System.Console.WriteLine(Date.Now);"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": ".NET (C#)",
   "language": "C#",
   "name": ".net-csharp"
  },
  "language_info": {
   "file_extension": ".cs",
   "mimetype": "text/x-csharp",
   "name": "C#",
   "pygments_lexer": "csharp",
   "version": "11.0"
  },
  "polyglot_notebook": {
   "kernelInfo": {
    "defaultKernelName": "csharp",
    "items": [
     {
      "aliases": [
       "c#",
       "C#"
      ],
      "languageName": "C#",
      "name": "csharp"
     },
     {
      "aliases": [
       "frontend"
      ],
      "languageName": null,
      "name": "vscode"
     }
    ]
   }
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
